package com.niuniu.rushdorm.mapper;

import com.niuniu.rushdorm.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Meng
 * 2022/11/24
 */
@Mapper
public interface UserMapper {
    UserVO getUser(Long uid);
    void updateLoginTime(@Param("uid") Long uid, @Param("time") Long time);

    @Select("select name from users where uid = #{uid}")
    String getUserName(long uid);
}
